import {createRouter, createWebHashHistory} from 'vue-router';

const routes = [
  {path: '/', title: '开始', component: () => import( '../views/home.vue')},
  {path: '/controller', title: '控制', component: () => import( '../views/controller.vue')},
  {path: '/animate', title: '动画', component: () => import( '../views/animate.vue')},
  {path: '/randomCubes', title: '随机画', component: () => import( '../views/randomCubes.vue')},
  {path: '/texture', title: '纹理', component: () => import( '../views/texture.vue')},
  {path: '/colorsCanvas', title: '多彩画布', component: () => import( '../views/colorsCanvas.vue')},
  {path: '/blingStars', title: '闪烁星星', component: () => import( '../views/blingStars.vue')},
];
const router = createRouter({history: createWebHashHistory(), routes});
export default router;
